.class public Lcom/jecelyin/editor/v2/view/menu/b;
.super Ljava/lang/Object;
.source "MenuFactory.java"


# static fields
.field private static d:Lcom/jecelyin/editor/v2/view/menu/b;


# instance fields
.field private a:Ljava/util/ArrayList;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/ArrayList<",
            "Lcom/jecelyin/editor/v2/view/menu/c;",
            ">;"
        }
    .end annotation
.end field

.field private b:Ljava/util/EnumMap;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/EnumMap<",
            "Lcom/jecelyin/editor/v2/view/menu/MenuGroup;",
            "Ljava/util/List<",
            "Lcom/jecelyin/editor/v2/view/menu/c;",
            ">;>;"
        }
    .end annotation
.end field

.field private c:Ljava/util/Map;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/Map<",
            "Ljava/lang/Integer;",
            "Ljava/lang/Integer;",
            ">;"
        }
    .end annotation
.end field


# direct methods
.method private constructor <init>(Landroid/content/Context;)V
    .locals 6

    .line 1
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 2
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lcom/jecelyin/editor/v2/view/menu/b;->a:Ljava/util/ArrayList;

    .line 3
    new-instance v0, Ljava/util/HashMap;

    invoke-direct {v0}, Ljava/util/HashMap;-><init>()V

    iput-object v0, p0, Lcom/jecelyin/editor/v2/view/menu/b;->c:Ljava/util/Map;

    .line 4
    invoke-direct {p0}, Lcom/jecelyin/editor/v2/view/menu/b;->b()V

    .line 5
    new-instance v0, Ljava/util/EnumMap;

    const-class v1, Lcom/jecelyin/editor/v2/view/menu/MenuGroup;

    invoke-direct {v0, v1}, Ljava/util/EnumMap;-><init>(Ljava/lang/Class;)V

    iput-object v0, p0, Lcom/jecelyin/editor/v2/view/menu/b;->b:Ljava/util/EnumMap;

    .line 6
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    .line 7
    iget-object v1, p0, Lcom/jecelyin/editor/v2/view/menu/b;->b:Ljava/util/EnumMap;

    sget-object v2, Lcom/jecelyin/editor/v2/view/menu/MenuGroup;->TOP:Lcom/jecelyin/editor/v2/view/menu/MenuGroup;

    invoke-virtual {v1, v2, v0}, Ljava/util/EnumMap;->put(Ljava/lang/Enum;Ljava/lang/Object;)Ljava/lang/Object;

    .line 8
    invoke-static {p1}, Lcom/jecelyin/editor/v2/d;->a(Landroid/content/Context;)Lcom/jecelyin/editor/v2/d;

    move-result-object p1

    invoke-virtual {p1}, Lcom/jecelyin/editor/v2/d;->m()[Ljava/lang/Integer;

    move-result-object p1

    if-nez p1, :cond_0

    const/4 p1, 0x5

    new-array p1, p1, [Ljava/lang/Integer;

    const/4 v1, 0x0

    .line 9
    sget v2, Lcom/jecelyin/editor/v2/j;->je_m_edit:I

    invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v2

    aput-object v2, p1, v1

    const/4 v1, 0x1

    sget v2, Lcom/jecelyin/editor/v2/j;->je_m_open:I

    invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v2

    aput-object v2, p1, v1

    const/4 v1, 0x2

    sget v2, Lcom/jecelyin/editor/v2/j;->je_m_new:I

    invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v2

    aput-object v2, p1, v1

    const/4 v1, 0x3

    sget v2, Lcom/jecelyin/editor/v2/j;->je_m_undo:I

    invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v2

    aput-object v2, p1, v1

    const/4 v1, 0x4

    sget v2, Lcom/jecelyin/editor/v2/j;->je_m_save:I

    invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v2

    aput-object v2, p1, v1

    .line 10
    :cond_0
    iget-object v1, p0, Lcom/jecelyin/editor/v2/view/menu/b;->a:Ljava/util/ArrayList;

    invoke-virtual {v1}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;

    move-result-object v1

    :goto_0
    invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z

    move-result v2

    if-eqz v2, :cond_3

    invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Lcom/jecelyin/editor/v2/view/menu/c;

    .line 11
    invoke-virtual {v2}, Lcom/jecelyin/editor/v2/view/menu/c;->getItemId()I

    move-result v3

    invoke-static {p1, v3}, Lcom/jecelyin/editor/v2/view/menu/b;->a([Ljava/lang/Integer;I)Z

    move-result v3

    if-eqz v3, :cond_1

    .line 12
    invoke-interface {v0, v2}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 13
    iget-object v3, p0, Lcom/jecelyin/editor/v2/view/menu/b;->c:Ljava/util/Map;

    invoke-virtual {v2}, Lcom/jecelyin/editor/v2/view/menu/c;->getItemId()I

    move-result v4

    invoke-static {v4}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v4

    invoke-virtual {v2}, Lcom/jecelyin/editor/v2/view/menu/c;->getGroupId()I

    move-result v2

    invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v2

    invoke-interface {v3, v4, v2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    goto :goto_0

    .line 14
    :cond_1
    iget-object v3, p0, Lcom/jecelyin/editor/v2/view/menu/b;->b:Ljava/util/EnumMap;

    invoke-virtual {v2}, Lcom/jecelyin/editor/v2/view/menu/c;->b()Lcom/jecelyin/editor/v2/view/menu/MenuGroup;

    move-result-object v4

    invoke-virtual {v3, v4}, Ljava/util/EnumMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Ljava/util/List;

    if-nez v3, :cond_2

    .line 15
    new-instance v3, Ljava/util/ArrayList;

    invoke-direct {v3}, Ljava/util/ArrayList;-><init>()V

    .line 16
    iget-object v4, p0, Lcom/jecelyin/editor/v2/view/menu/b;->b:Ljava/util/EnumMap;

    invoke-virtual {v2}, Lcom/jecelyin/editor/v2/view/menu/c;->b()Lcom/jecelyin/editor/v2/view/menu/MenuGroup;

    move-result-object v5

    invoke-virtual {v4, v5, v3}, Ljava/util/EnumMap;->put(Ljava/lang/Enum;Ljava/lang/Object;)Ljava/lang/Object;

    .line 17
    :cond_2
    invoke-interface {v3, v2}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    goto :goto_0

    :cond_3
    return-void
.end method

.method public static a(Landroid/content/Context;)Lcom/jecelyin/editor/v2/view/menu/b;
    .locals 1

    .line 1
    sget-object v0, Lcom/jecelyin/editor/v2/view/menu/b;->d:Lcom/jecelyin/editor/v2/view/menu/b;

    if-nez v0, :cond_0

    .line 2
    new-instance v0, Lcom/jecelyin/editor/v2/view/menu/b;

    invoke-direct {v0, p0}, Lcom/jecelyin/editor/v2/view/menu/b;-><init>(Landroid/content/Context;)V

    sput-object v0, Lcom/jecelyin/editor/v2/view/menu/b;->d:Lcom/jecelyin/editor/v2/view/menu/b;

    .line 3
    :cond_0
    sget-object p0, Lcom/jecelyin/editor/v2/view/menu/b;->d:Lcom/jecelyin/editor/v2/view/menu/b;

    return-object p0
.end method

.method private static a([Ljava/lang/Integer;I)Z
    .locals 4

    .line 4
    array-length v0, p0

    const/4 v1, 0x0

    const/4 v2, 0x0

    :goto_0
    if-ge v2, v0, :cond_1

    aget-object v3, p0, v2

    .line 5
    invoke-virtual {v3}, Ljava/lang/Integer;->intValue()I

    move-result v3

    if-ne p1, v3, :cond_0

    const/4 p0, 0x1

    return p0

    :cond_0
    add-int/lit8 v2, v2, 0x1

    goto :goto_0

    :cond_1
    return v1
.end method

.method private b()V
    .locals 8

    .line 1
    iget-object v0, p0, Lcom/jecelyin/editor/v2/view/menu/b;->a:Ljava/util/ArrayList;

    new-instance v7, Lcom/jecelyin/editor/v2/view/menu/c;

    sget-object v2, Lcom/jecelyin/editor/v2/view/menu/MenuGroup;->FILE:Lcom/jecelyin/editor/v2/view/menu/MenuGroup;

    sget v3, Lcom/jecelyin/editor/v2/j;->je_m_edit:I

    sget-object v4, Lcom/jecelyin/editor/v2/common/Command$CommandEnum;->NONE:Lcom/jecelyin/editor/v2/common/Command$CommandEnum;

    sget v5, Lcom/jecelyin/editor/v2/i;->je_toolbar_edit:I

    sget v6, Lcom/jecelyin/editor/v2/m;->je_edit:I

    move-object v1, v7

    invoke-direct/range {v1 .. v6}, Lcom/jecelyin/editor/v2/view/menu/c;-><init>(Lcom/jecelyin/editor/v2/view/menu/MenuGroup;ILcom/jecelyin/editor/v2/common/Command$CommandEnum;II)V

    invoke-virtual {v0, v7}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 2
    iget-object v0, p0, Lcom/jecelyin/editor/v2/view/menu/b;->a:Ljava/util/ArrayList;

    new-instance v7, Lcom/jecelyin/editor/v2/view/menu/c;

    sget-object v2, Lcom/jecelyin/editor/v2/view/menu/MenuGroup;->FILE:Lcom/jecelyin/editor/v2/view/menu/MenuGroup;

    sget v3, Lcom/jecelyin/editor/v2/j;->je_m_open:I

    sget-object v4, Lcom/jecelyin/editor/v2/common/Command$CommandEnum;->OPEN:Lcom/jecelyin/editor/v2/common/Command$CommandEnum;

    sget v5, Lcom/jecelyin/editor/v2/i;->je_toolbar_open:I

    sget v6, Lcom/jecelyin/editor/v2/m;->je_open:I

    move-object v1, v7

    invoke-direct/range {v1 .. v6}, Lcom/jecelyin/editor/v2/view/menu/c;-><init>(Lcom/jecelyin/editor/v2/view/menu/MenuGroup;ILcom/jecelyin/editor/v2/common/Command$CommandEnum;II)V

    invoke-virtual {v0, v7}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 3
    iget-object v0, p0, Lcom/jecelyin/editor/v2/view/menu/b;->a:Ljava/util/ArrayList;

    new-instance v7, Lcom/jecelyin/editor/v2/view/menu/c;

    sget-object v2, Lcom/jecelyin/editor/v2/view/menu/MenuGroup;->FILE:Lcom/jecelyin/editor/v2/view/menu/MenuGroup;

    sget v3, Lcom/jecelyin/editor/v2/j;->je_m_new:I

    sget-object v4, Lcom/jecelyin/editor/v2/common/Command$CommandEnum;->NONE:Lcom/jecelyin/editor/v2/common/Command$CommandEnum;

    sget v5, Lcom/jecelyin/editor/v2/i;->je_toolbar_new:I

    sget v6, Lcom/jecelyin/editor/v2/m;->je_new_file:I

    move-object v1, v7

    invoke-direct/range {v1 .. v6}, Lcom/jecelyin/editor/v2/view/menu/c;-><init>(Lcom/jecelyin/editor/v2/view/menu/MenuGroup;ILcom/jecelyin/editor/v2/common/Command$CommandEnum;II)V

    invoke-virtual {v0, v7}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 4
    iget-object v0, p0, Lcom/jecelyin/editor/v2/view/menu/b;->a:Ljava/util/ArrayList;

    new-instance v7, Lcom/jecelyin/editor/v2/view/menu/c;

    sget-object v2, Lcom/jecelyin/editor/v2/view/menu/MenuGroup;->EDIT:Lcom/jecelyin/editor/v2/view/menu/MenuGroup;

    sget v3, Lcom/jecelyin/editor/v2/j;->je_m_undo:I

    sget-object v4, Lcom/jecelyin/editor/v2/common/Command$CommandEnum;->UNDO:Lcom/jecelyin/editor/v2/common/Command$CommandEnum;

    sget v5, Lcom/jecelyin/editor/v2/i;->je_toolbar_cancel:I

    sget v6, Lcom/jecelyin/editor/v2/m;->je_undo:I

    move-object v1, v7

    invoke-direct/range {v1 .. v6}, Lcom/jecelyin/editor/v2/view/menu/c;-><init>(Lcom/jecelyin/editor/v2/view/menu/MenuGroup;ILcom/jecelyin/editor/v2/common/Command$CommandEnum;II)V

    invoke-virtual {v0, v7}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 5
    iget-object v0, p0, Lcom/jecelyin/editor/v2/view/menu/b;->a:Ljava/util/ArrayList;

    new-instance v7, Lcom/jecelyin/editor/v2/view/menu/c;

    sget-object v2, Lcom/jecelyin/editor/v2/view/menu/MenuGroup;->FILE:Lcom/jecelyin/editor/v2/view/menu/MenuGroup;

    sget v3, Lcom/jecelyin/editor/v2/j;->je_m_save:I

    sget-object v4, Lcom/jecelyin/editor/v2/common/Command$CommandEnum;->SAVE:Lcom/jecelyin/editor/v2/common/Command$CommandEnum;

    sget v5, Lcom/jecelyin/editor/v2/i;->je_toolbar_save:I

    sget v6, Lcom/jecelyin/editor/v2/m;->je_save:I

    move-object v1, v7

    invoke-direct/range {v1 .. v6}, Lcom/jecelyin/editor/v2/view/menu/c;-><init>(Lcom/jecelyin/editor/v2/view/menu/MenuGroup;ILcom/jecelyin/editor/v2/common/Command$CommandEnum;II)V

    invoke-virtual {v0, v7}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 6
    iget-object v0, p0, Lcom/jecelyin/editor/v2/view/menu/b;->a:Ljava/util/ArrayList;

    new-instance v7, Lcom/jecelyin/editor/v2/view/menu/c;

    sget-object v2, Lcom/jecelyin/editor/v2/view/menu/MenuGroup;->FILE:Lcom/jecelyin/editor/v2/view/menu/MenuGroup;

    sget v3, Lcom/jecelyin/editor/v2/j;->je_m_save_as:I

    sget-object v4, Lcom/jecelyin/editor/v2/common/Command$CommandEnum;->SAVE_AS:Lcom/jecelyin/editor/v2/common/Command$CommandEnum;

    sget v5, Lcom/jecelyin/editor/v2/i;->je_toolbar_saveas:I

    sget v6, Lcom/jecelyin/editor/v2/m;->je_save_as:I

    move-object v1, v7

    invoke-direct/range {v1 .. v6}, Lcom/jecelyin/editor/v2/view/menu/c;-><init>(Lcom/jecelyin/editor/v2/view/menu/MenuGroup;ILcom/jecelyin/editor/v2/common/Command$CommandEnum;II)V

    invoke-virtual {v0, v7}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 7
    iget-object v0, p0, Lcom/jecelyin/editor/v2/view/menu/b;->a:Ljava/util/ArrayList;

    new-instance v7, Lcom/jecelyin/editor/v2/view/menu/c;

    sget-object v2, Lcom/jecelyin/editor/v2/view/menu/MenuGroup;->FILE:Lcom/jecelyin/editor/v2/view/menu/MenuGroup;

    sget v3, Lcom/jecelyin/editor/v2/j;->je_m_save_all:I

    sget-object v4, Lcom/jecelyin/editor/v2/common/Command$CommandEnum;->NONE:Lcom/jecelyin/editor/v2/common/Command$CommandEnum;

    sget v5, Lcom/jecelyin/editor/v2/i;->je_toolbar_saveall:I

    sget v6, Lcom/jecelyin/editor/v2/m;->je_save_all:I

    move-object v1, v7

    invoke-direct/range {v1 .. v6}, Lcom/jecelyin/editor/v2/view/menu/c;-><init>(Lcom/jecelyin/editor/v2/view/menu/MenuGroup;ILcom/jecelyin/editor/v2/common/Command$CommandEnum;II)V

    invoke-virtual {v0, v7}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 8
    iget-object v0, p0, Lcom/jecelyin/editor/v2/view/menu/b;->a:Ljava/util/ArrayList;

    new-instance v7, Lcom/jecelyin/editor/v2/view/menu/c;

    sget-object v2, Lcom/jecelyin/editor/v2/view/menu/MenuGroup;->FILE:Lcom/jecelyin/editor/v2/view/menu/MenuGroup;

    sget v3, Lcom/jecelyin/editor/v2/j;->je_m_history:I

    sget-object v4, Lcom/jecelyin/editor/v2/common/Command$CommandEnum;->NONE:Lcom/jecelyin/editor/v2/common/Command$CommandEnum;

    sget v5, Lcom/jecelyin/editor/v2/i;->je_toolbar_recentfiles:I

    sget v6, Lcom/jecelyin/editor/v2/m;->je_recent_files:I

    move-object v1, v7

    invoke-direct/range {v1 .. v6}, Lcom/jecelyin/editor/v2/view/menu/c;-><init>(Lcom/jecelyin/editor/v2/view/menu/MenuGroup;ILcom/jecelyin/editor/v2/common/Command$CommandEnum;II)V

    invoke-virtual {v0, v7}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 9
    iget-object v0, p0, Lcom/jecelyin/editor/v2/view/menu/b;->a:Ljava/util/ArrayList;

    new-instance v7, Lcom/jecelyin/editor/v2/view/menu/c;

    sget-object v2, Lcom/jecelyin/editor/v2/view/menu/MenuGroup;->EDIT:Lcom/jecelyin/editor/v2/view/menu/MenuGroup;

    sget v3, Lcom/jecelyin/editor/v2/j;->je_m_redo:I

    sget-object v4, Lcom/jecelyin/editor/v2/common/Command$CommandEnum;->REDO:Lcom/jecelyin/editor/v2/common/Command$CommandEnum;

    sget v5, Lcom/jecelyin/editor/v2/i;->je_toolbar_restore:I

    sget v6, Lcom/jecelyin/editor/v2/m;->je_redo:I

    move-object v1, v7

    invoke-direct/range {v1 .. v6}, Lcom/jecelyin/editor/v2/view/menu/c;-><init>(Lcom/jecelyin/editor/v2/view/menu/MenuGroup;ILcom/jecelyin/editor/v2/common/Command$CommandEnum;II)V

    invoke-virtual {v0, v7}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 10
    iget-object v0, p0, Lcom/jecelyin/editor/v2/view/menu/b;->a:Ljava/util/ArrayList;

    new-instance v7, Lcom/jecelyin/editor/v2/view/menu/c;

    sget-object v2, Lcom/jecelyin/editor/v2/view/menu/MenuGroup;->EDIT:Lcom/jecelyin/editor/v2/view/menu/MenuGroup;

    sget v3, Lcom/jecelyin/editor/v2/j;->je_m_wrap:I

    sget-object v4, Lcom/jecelyin/editor/v2/common/Command$CommandEnum;->CONVERT_WRAP_CHAR:Lcom/jecelyin/editor/v2/common/Command$CommandEnum;

    sget v5, Lcom/jecelyin/editor/v2/i;->je_toolbar_linebreak:I

    sget v6, Lcom/jecelyin/editor/v2/m;->je_line_separator:I

    move-object v1, v7

    invoke-direct/range {v1 .. v6}, Lcom/jecelyin/editor/v2/view/menu/c;-><init>(Lcom/jecelyin/editor/v2/view/menu/MenuGroup;ILcom/jecelyin/editor/v2/common/Command$CommandEnum;II)V

    invoke-virtual {v0, v7}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 11
    iget-object v0, p0, Lcom/jecelyin/editor/v2/view/menu/b;->a:Ljava/util/ArrayList;

    new-instance v7, Lcom/jecelyin/editor/v2/view/menu/c;

    sget-object v2, Lcom/jecelyin/editor/v2/view/menu/MenuGroup;->FIND:Lcom/jecelyin/editor/v2/view/menu/MenuGroup;

    sget v3, Lcom/jecelyin/editor/v2/j;->je_m_find_replace:I

    sget-object v4, Lcom/jecelyin/editor/v2/common/Command$CommandEnum;->FIND:Lcom/jecelyin/editor/v2/common/Command$CommandEnum;

    sget v5, Lcom/jecelyin/editor/v2/i;->je_toolbar_search:I

    sget v6, Lcom/jecelyin/editor/v2/m;->je_find_or_replace:I

    move-object v1, v7

    invoke-direct/range {v1 .. v6}, Lcom/jecelyin/editor/v2/view/menu/c;-><init>(Lcom/jecelyin/editor/v2/view/menu/MenuGroup;ILcom/jecelyin/editor/v2/common/Command$CommandEnum;II)V

    invoke-virtual {v0, v7}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 12
    iget-object v0, p0, Lcom/jecelyin/editor/v2/view/menu/b;->a:Ljava/util/ArrayList;

    new-instance v7, Lcom/jecelyin/editor/v2/view/menu/c;

    sget-object v2, Lcom/jecelyin/editor/v2/view/menu/MenuGroup;->FIND:Lcom/jecelyin/editor/v2/view/menu/MenuGroup;

    sget v3, Lcom/jecelyin/editor/v2/j;->je_m_goto_top:I

    sget-object v4, Lcom/jecelyin/editor/v2/common/Command$CommandEnum;->GOTO_TOP:Lcom/jecelyin/editor/v2/common/Command$CommandEnum;

    sget v5, Lcom/jecelyin/editor/v2/i;->je_toolbar_jumptostart:I

    sget v6, Lcom/jecelyin/editor/v2/m;->je_jump_to_start:I

    move-object v1, v7

    invoke-direct/range {v1 .. v6}, Lcom/jecelyin/editor/v2/view/menu/c;-><init>(Lcom/jecelyin/editor/v2/view/menu/MenuGroup;ILcom/jecelyin/editor/v2/common/Command$CommandEnum;II)V

    invoke-virtual {v0, v7}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 13
    iget-object v0, p0, Lcom/jecelyin/editor/v2/view/menu/b;->a:Ljava/util/ArrayList;

    new-instance v7, Lcom/jecelyin/editor/v2/view/menu/c;

    sget-object v2, Lcom/jecelyin/editor/v2/view/menu/MenuGroup;->FIND:Lcom/jecelyin/editor/v2/view/menu/MenuGroup;

    sget v3, Lcom/jecelyin/editor/v2/j;->je_m_goto_end:I

    sget-object v4, Lcom/jecelyin/editor/v2/common/Command$CommandEnum;->GOTO_END:Lcom/jecelyin/editor/v2/common/Command$CommandEnum;

    sget v5, Lcom/jecelyin/editor/v2/i;->je_toolbar_jumptoend:I

    sget v6, Lcom/jecelyin/editor/v2/m;->je_jump_to_end:I

    move-object v1, v7

    invoke-direct/range {v1 .. v6}, Lcom/jecelyin/editor/v2/view/menu/c;-><init>(Lcom/jecelyin/editor/v2/view/menu/MenuGroup;ILcom/jecelyin/editor/v2/common/Command$CommandEnum;II)V

    invoke-virtual {v0, v7}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 14
    iget-object v0, p0, Lcom/jecelyin/editor/v2/view/menu/b;->a:Ljava/util/ArrayList;

    new-instance v7, Lcom/jecelyin/editor/v2/view/menu/c;

    sget-object v2, Lcom/jecelyin/editor/v2/view/menu/MenuGroup;->FIND:Lcom/jecelyin/editor/v2/view/menu/MenuGroup;

    sget v3, Lcom/jecelyin/editor/v2/j;->je_m_goto_line:I

    sget-object v4, Lcom/jecelyin/editor/v2/common/Command$CommandEnum;->GOTO_LINE:Lcom/jecelyin/editor/v2/common/Command$CommandEnum;

    sget v5, Lcom/jecelyin/editor/v2/i;->je_toolbar_gotoline:I

    sget v6, Lcom/jecelyin/editor/v2/m;->je_goto_line:I

    move-object v1, v7

    invoke-direct/range {v1 .. v6}, Lcom/jecelyin/editor/v2/view/menu/c;-><init>(Lcom/jecelyin/editor/v2/view/menu/MenuGroup;ILcom/jecelyin/editor/v2/common/Command$CommandEnum;II)V

    invoke-virtual {v0, v7}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 15
    iget-object v0, p0, Lcom/jecelyin/editor/v2/view/menu/b;->a:Ljava/util/ArrayList;

    new-instance v7, Lcom/jecelyin/editor/v2/view/menu/c;

    sget-object v2, Lcom/jecelyin/editor/v2/view/menu/MenuGroup;->FIND:Lcom/jecelyin/editor/v2/view/menu/MenuGroup;

    sget v3, Lcom/jecelyin/editor/v2/j;->je_m_back:I

    sget-object v4, Lcom/jecelyin/editor/v2/common/Command$CommandEnum;->BACK:Lcom/jecelyin/editor/v2/common/Command$CommandEnum;

    sget v5, Lcom/jecelyin/editor/v2/i;->je_toolbar_back:I

    sget v6, Lcom/jecelyin/editor/v2/m;->je_back:I

    move-object v1, v7

    invoke-direct/range {v1 .. v6}, Lcom/jecelyin/editor/v2/view/menu/c;-><init>(Lcom/jecelyin/editor/v2/view/menu/MenuGroup;ILcom/jecelyin/editor/v2/common/Command$CommandEnum;II)V

    invoke-virtual {v0, v7}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 16
    iget-object v0, p0, Lcom/jecelyin/editor/v2/view/menu/b;->a:Ljava/util/ArrayList;

    new-instance v7, Lcom/jecelyin/editor/v2/view/menu/c;

    sget-object v2, Lcom/jecelyin/editor/v2/view/menu/MenuGroup;->FIND:Lcom/jecelyin/editor/v2/view/menu/MenuGroup;

    sget v3, Lcom/jecelyin/editor/v2/j;->je_m_forward:I

    sget-object v4, Lcom/jecelyin/editor/v2/common/Command$CommandEnum;->FORWARD:Lcom/jecelyin/editor/v2/common/Command$CommandEnum;

    sget v5, Lcom/jecelyin/editor/v2/i;->je_toolbar_forward:I

    sget v6, Lcom/jecelyin/editor/v2/m;->je_forward:I

    move-object v1, v7

    invoke-direct/range {v1 .. v6}, Lcom/jecelyin/editor/v2/view/menu/c;-><init>(Lcom/jecelyin/editor/v2/view/menu/MenuGroup;ILcom/jecelyin/editor/v2/common/Command$CommandEnum;II)V

    invoke-virtual {v0, v7}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 17
    iget-object v0, p0, Lcom/jecelyin/editor/v2/view/menu/b;->a:Ljava/util/ArrayList;

    new-instance v7, Lcom/jecelyin/editor/v2/view/menu/c;

    sget-object v2, Lcom/jecelyin/editor/v2/view/menu/MenuGroup;->VIEW:Lcom/jecelyin/editor/v2/view/menu/MenuGroup;

    sget v3, Lcom/jecelyin/editor/v2/j;->je_m_info:I

    sget-object v4, Lcom/jecelyin/editor/v2/common/Command$CommandEnum;->DOC_INFO:Lcom/jecelyin/editor/v2/common/Command$CommandEnum;

    sget v5, Lcom/jecelyin/editor/v2/i;->je_toolbar_property:I

    sget v6, Lcom/jecelyin/editor/v2/m;->je_document_info:I

    move-object v1, v7

    invoke-direct/range {v1 .. v6}, Lcom/jecelyin/editor/v2/view/menu/c;-><init>(Lcom/jecelyin/editor/v2/view/menu/MenuGroup;ILcom/jecelyin/editor/v2/common/Command$CommandEnum;II)V

    invoke-virtual {v0, v7}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 18
    iget-object v0, p0, Lcom/jecelyin/editor/v2/view/menu/b;->a:Ljava/util/ArrayList;

    new-instance v7, Lcom/jecelyin/editor/v2/view/menu/c;

    sget-object v2, Lcom/jecelyin/editor/v2/view/menu/MenuGroup;->VIEW:Lcom/jecelyin/editor/v2/view/menu/MenuGroup;

    sget v3, Lcom/jecelyin/editor/v2/j;->je_m_theme:I

    sget-object v4, Lcom/jecelyin/editor/v2/common/Command$CommandEnum;->THEME:Lcom/jecelyin/editor/v2/common/Command$CommandEnum;

    sget v5, Lcom/jecelyin/editor/v2/i;->je_toolbar_theme:I

    sget v6, Lcom/jecelyin/editor/v2/m;->je_change_theme:I

    move-object v1, v7

    invoke-direct/range {v1 .. v6}, Lcom/jecelyin/editor/v2/view/menu/c;-><init>(Lcom/jecelyin/editor/v2/view/menu/MenuGroup;ILcom/jecelyin/editor/v2/common/Command$CommandEnum;II)V

    invoke-virtual {v0, v7}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 19
    iget-object v0, p0, Lcom/jecelyin/editor/v2/view/menu/b;->a:Ljava/util/ArrayList;

    new-instance v7, Lcom/jecelyin/editor/v2/view/menu/c;

    sget-object v2, Lcom/jecelyin/editor/v2/view/menu/MenuGroup;->VIEW:Lcom/jecelyin/editor/v2/view/menu/MenuGroup;

    sget v3, Lcom/jecelyin/editor/v2/j;->je_m_highlight:I

    sget-object v4, Lcom/jecelyin/editor/v2/common/Command$CommandEnum;->NONE:Lcom/jecelyin/editor/v2/common/Command$CommandEnum;

    sget v5, Lcom/jecelyin/editor/v2/i;->je_toolbar_hl_language:I

    sget v6, Lcom/jecelyin/editor/v2/m;->je_highlight_language:I

    move-object v1, v7

    invoke-direct/range {v1 .. v6}, Lcom/jecelyin/editor/v2/view/menu/c;-><init>(Lcom/jecelyin/editor/v2/view/menu/MenuGroup;ILcom/jecelyin/editor/v2/common/Command$CommandEnum;II)V

    invoke-virtual {v0, v7}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 20
    iget-object v0, p0, Lcom/jecelyin/editor/v2/view/menu/b;->a:Ljava/util/ArrayList;

    new-instance v7, Lcom/jecelyin/editor/v2/view/menu/c;

    sget-object v2, Lcom/jecelyin/editor/v2/view/menu/MenuGroup;->VIEW:Lcom/jecelyin/editor/v2/view/menu/MenuGroup;

    sget v3, Lcom/jecelyin/editor/v2/j;->je_m_encoding:I

    sget-object v4, Lcom/jecelyin/editor/v2/common/Command$CommandEnum;->NONE:Lcom/jecelyin/editor/v2/common/Command$CommandEnum;

    sget v5, Lcom/jecelyin/editor/v2/i;->je_toolbar_encoding:I

    sget v6, Lcom/jecelyin/editor/v2/m;->je_encoding:I

    move-object v1, v7

    invoke-direct/range {v1 .. v6}, Lcom/jecelyin/editor/v2/view/menu/c;-><init>(Lcom/jecelyin/editor/v2/view/menu/MenuGroup;ILcom/jecelyin/editor/v2/common/Command$CommandEnum;II)V

    invoke-virtual {v0, v7}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 21
    iget-object v0, p0, Lcom/jecelyin/editor/v2/view/menu/b;->a:Ljava/util/ArrayList;

    new-instance v7, Lcom/jecelyin/editor/v2/view/menu/c;

    sget-object v2, Lcom/jecelyin/editor/v2/view/menu/MenuGroup;->OTHER:Lcom/jecelyin/editor/v2/view/menu/MenuGroup;

    sget v3, Lcom/jecelyin/editor/v2/j;->je_m_run:I

    sget-object v4, Lcom/jecelyin/editor/v2/common/Command$CommandEnum;->NONE:Lcom/jecelyin/editor/v2/common/Command$CommandEnum;

    sget v5, Lcom/jecelyin/editor/v2/i;->je_toolbar_play:I

    sget v6, Lcom/jecelyin/editor/v2/m;->je_run:I

    move-object v1, v7

    invoke-direct/range {v1 .. v6}, Lcom/jecelyin/editor/v2/view/menu/c;-><init>(Lcom/jecelyin/editor/v2/view/menu/MenuGroup;ILcom/jecelyin/editor/v2/common/Command$CommandEnum;II)V

    invoke-virtual {v0, v7}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 22
    iget-object v0, p0, Lcom/jecelyin/editor/v2/view/menu/b;->a:Ljava/util/ArrayList;

    new-instance v7, Lcom/jecelyin/editor/v2/view/menu/c;

    sget-object v2, Lcom/jecelyin/editor/v2/view/menu/MenuGroup;->OTHER:Lcom/jecelyin/editor/v2/view/menu/MenuGroup;

    sget v3, Lcom/jecelyin/editor/v2/j;->je_m_settings:I

    sget-object v4, Lcom/jecelyin/editor/v2/common/Command$CommandEnum;->NONE:Lcom/jecelyin/editor/v2/common/Command$CommandEnum;

    sget v5, Lcom/jecelyin/editor/v2/i;->je_toolbar_setting:I

    sget v6, Lcom/jecelyin/editor/v2/m;->je_settings:I

    move-object v1, v7

    invoke-direct/range {v1 .. v6}, Lcom/jecelyin/editor/v2/view/menu/c;-><init>(Lcom/jecelyin/editor/v2/view/menu/MenuGroup;ILcom/jecelyin/editor/v2/common/Command$CommandEnum;II)V

    invoke-virtual {v0, v7}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    return-void
.end method


# virtual methods
.method public a(I)Lcom/jecelyin/editor/v2/common/Command$CommandEnum;
    .locals 3

    .line 11
    iget-object v0, p0, Lcom/jecelyin/editor/v2/view/menu/b;->a:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;

    move-result-object v0

    :cond_0
    invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z

    move-result v1

    if-eqz v1, :cond_1

    invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/jecelyin/editor/v2/view/menu/c;

    .line 12
    invoke-virtual {v1}, Lcom/jecelyin/editor/v2/view/menu/c;->getItemId()I

    move-result v2

    if-ne v2, p1, :cond_0

    .line 13
    invoke-virtual {v1}, Lcom/jecelyin/editor/v2/view/menu/c;->a()Lcom/jecelyin/editor/v2/common/Command$CommandEnum;

    move-result-object p1

    return-object p1

    .line 14
    :cond_1
    sget-object p1, Lcom/jecelyin/editor/v2/common/Command$CommandEnum;->NONE:Lcom/jecelyin/editor/v2/common/Command$CommandEnum;

    return-object p1
.end method

.method public a()Ljava/util/List;
    .locals 2
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "()",
            "Ljava/util/List<",
            "Lcom/jecelyin/editor/v2/view/menu/c;",
            ">;"
        }
    .end annotation

    .line 6
    iget-object v0, p0, Lcom/jecelyin/editor/v2/view/menu/b;->b:Ljava/util/EnumMap;

    sget-object v1, Lcom/jecelyin/editor/v2/view/menu/MenuGroup;->TOP:Lcom/jecelyin/editor/v2/view/menu/MenuGroup;

    invoke-virtual {v0, v1}, Ljava/util/EnumMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/util/List;

    return-object v0
.end method

.method public a(Lcom/jecelyin/editor/v2/view/menu/MenuGroup;)Ljava/util/List;
    .locals 5
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lcom/jecelyin/editor/v2/view/menu/MenuGroup;",
            ")",
            "Ljava/util/List<",
            "Lcom/jecelyin/editor/v2/view/menu/c;",
            ">;"
        }
    .end annotation

    .line 7
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    .line 8
    iget-object v1, p0, Lcom/jecelyin/editor/v2/view/menu/b;->a:Ljava/util/ArrayList;

    invoke-virtual {v1}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;

    move-result-object v1

    :cond_0
    :goto_0
    invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z

    move-result v2

    if-eqz v2, :cond_1

    invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Lcom/jecelyin/editor/v2/view/menu/c;

    .line 9
    invoke-virtual {v2}, Lcom/jecelyin/editor/v2/view/menu/c;->b()Lcom/jecelyin/editor/v2/view/menu/MenuGroup;

    move-result-object v3

    if-ne v3, p1, :cond_0

    iget-object v3, p0, Lcom/jecelyin/editor/v2/view/menu/b;->c:Ljava/util/Map;

    invoke-virtual {v2}, Lcom/jecelyin/editor/v2/view/menu/c;->getItemId()I

    move-result v4

    invoke-static {v4}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v4

    invoke-interface {v3, v4}, Ljava/util/Map;->containsKey(Ljava/lang/Object;)Z

    move-result v3

    if-nez v3, :cond_0

    .line 10
    invoke-virtual {v0, v2}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    goto :goto_0

    :cond_1
    return-object v0
.end method
